//
//  FiveDetailTableViewCell.m
//  SYiDaiy
//
//  Created by dllo on 16/9/2.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FiveDetailTableViewCell.h"
#import "UIView+Frame.h"
#import "UIView+ImageView.h"
#import "UIView+Label.h"
#import "TAMacro.h"

@implementation FiveDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _imageView1 = [[UIImageView alloc] creatImageViewWithFrame:CGRectZero backgroudColor:[UIColor whiteColor]];
        [self.contentView addSubview:_imageView1];
        _label1 = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:17]];
        [self.contentView addSubview:_label1];
        _label2 = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:13]];
        [self.contentView addSubview:_label2];
        _label3 = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:15]];
        [self.contentView addSubview:_label3];
    }
    return self;
}

- (void)layoutSubviews
{
    _imageView1.frame = CGRectMake(5, 5, 100, 100);
    _label1.frame = CGRectMake(110, 5, SCREEN_WIDTH - 110, 20);
    _label2.frame = CGRectMake(110, 25, SCREEN_WIDTH - 110, 20);
    _label3.frame = CGRectMake(110, 45, SCREEN_WIDTH - 110, 60);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
